#! /bin/bash
set +x
set -e

export LD_LIBRARY_PATH=/opt/_internal/cpython-3.8.0/lib/:${LD_LIBRARY_PATH}
export PATH=/opt/_internal/cpython-3.8.0/bin/:${PATH}

work_path=$(dirname $(readlink -f $0))
cd $work_path

nohup python tool-api.py > tool-api.log 2>&1 &

cd tool-6 && nohup python service.py > tool-6.log 2>&1 & cd -
cd tool-11 && nohup python service.py > tool-11.log 2>&1 & cd -
cd tool-13 && nohup python service.py > tool-13.log 2>&1 & cd -